package com.ws.soa.consumer.dao.mapper;

import com.ws.soa.consumer.domain.WorksCommentDO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * WorksCommentDAO继承基类
 */
@Repository
public interface WorksCommentMapper extends MyBatisBaseMapper<WorksCommentDO, String>{

    List<WorksCommentDO> findAll();

    /**
     * 查询某个作品的评论数
     *
     * @param workId 作品id
     * @return 评论数
     */
    Long getWorkCommentCount(String workId);


    List<WorksCommentDO> findAllByWorkId(String workId);
}